<#include "license.ftl">
<@license/>
package ${doc.all.package}.gwt.constants;

import com.google.gwt.core.client.GWT;

/**
* @author Redora (www.redora.net)
*/
public interface GlobalEnumConstants extends com.google.gwt.i18n.client.Constants {
    public static final GlobalEnumConstants INSTANCE = GWT.create(GlobalEnumConstants.class);

<#list doc["//globals/enum"] as att>
    <#list att.caption as cap>
        <#if cap.@language == doc.all.languages.@defaultLanguage>
    @DefaultStringValue("${cap.@table}")
    @Key("${att.@fieldName}.table")
    String ${att.@fieldName}_table();

    @DefaultStringValue("${cap.@form}")
    @Key("${att.@fieldName}.form")
    String ${att.@fieldName}_form();	
        </#if>
    </#list>

    <#list att.element as value>
        <#list value.caption as cap>
             <#if cap.@language == doc.all.languages.@defaultLanguage>
    @DefaultStringValue("${cap.@table}")
    @Key("${att.@fieldName}.${value.@name}.table")
    String ${att.@fieldName}_${value.@name}_table();

    @DefaultStringValue("${cap.@form}")
    @Key("${att.@fieldName}.${value.@name}.form")
    String ${att.@fieldName}_${value.@name}_form();
             </#if>
         </#list>
    </#list>
</#list>
}